<template>
	<div>
		<!--主机状态选择-->
		<baseSelect ref="baseSelect" :defaultValue="defaultValue" :optionList="options" @change="changeHandel"></baseSelect>
	</div>
</template>

<script>
	import baseSelect from "@/view/components/select/select";
	export default {
		components : {
			baseSelect
		},
		props:[
			"defaultValue"
		],
		data(){
			return {
				options: [{
                    value: '0',
                    label: '成功'
                    }, {
                    value: '1',
                    label: '失败'
                    }],
			}
		},
		methods : {
			changeHandel(name , v){
				this.$emit("change", "caozuoStatusSelect", v)
			},
			
			reset(){
				this.$refs.baseSelect.reset()
			}
		}
	}
</script>

<style>
</style>